﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RepositoryFramework
{
	/// <summary>
	/// Class <see cref="SqlParameterAttribute"/> define attribute for sql parameter 
	/// </summary>
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
	public class SqlParameterAttribute : Attribute
	{
		#region Methods
		/// <summary>
		/// Gets or sets the parameter name.
		/// </summary>
		/// <value>
		/// The name.
		/// </value>
		public string Name { get; private set; }
		#endregion

		#region .ctor
		/// <summary>
		/// Initializes a new instance of the <see cref="SqlParameterAttribute"/> class.
		/// </summary>
		/// <param name="name">The name.</param>
		public SqlParameterAttribute(string name)
		{
			Name = name;
		}
		#endregion

	}
}
